package com.jay.media.video.openglesdemo

/**
 * @author xuzhou4
 * @date 2022/2/9
 */
class MyNativeRenderer {
    external fun native_onInit()
    external fun native_onUnInit()
    external fun native_setImageData(format: Int, width: Int, height: Int, bytes: ByteArray)
    external fun native_onSurfaceCreated()
    external fun native_onSurfaceChanged(width: Int, height: Int)
    external fun native_onDrawFrame()

    companion object {
        init {
            System.loadLibrary("glRenderer")
        }
    }
}